import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import store, {key} from './store'
// 引入elementplus插件
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 引入图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// element国际化支持
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 跨域
// const cors = require('cors')
const app = createApp(App)
// 添加图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}

app.use(ElementPlus, {locale: zhCn}).use(store, key).use(router).mount('#app')
